
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../template/taglib.jsp"%>

<jsp:include page="../template/header.jsp" />

<jsp:include page="../template/adminmenu.jsp" />

<%-- content template --%>
<jsp:include page="../template/contentheader.jsp" />
<%-- put content here --%>
<fmt:setBundle basename="admin" />
<%--<c:set var="t" value="true" /> --%>
<c:set var="t" value="true" />
<h2>
	<fmt:message key="lable.staff" />
</h2>
<form action="/LeaveApplicationProcessingSystem/AdminStaffServlet"
	method="post">
	<table cellpadding="4" cellspacing="2" border="0">

		<tr>
			<td><fmt:message key="lable.staff.username" /></td>
			<td><input type="text" name="userName"
				value="${currentuser.userName}" size="15" maxlength="20"
				<c:if test="${currentuser != null}">readonly="readonly"</c:if>> <input type="hidden" name="type"
				<c:if test="${currentuser != null}">value="update"</c:if><c:if test="${currentuser == null}">value="insert"</c:if> /> <input type="hidden" name="id"
				value="${ currentuser.id }" />
			</td>
		</tr>
		<tr>
			<td><fmt:message key="lable.staff.usertype" /></td>
			<td><SELECT name="userType">
					<c:forEach var="userType" items="${userTypes}">
						<option value="${userType.id}"
							<c:if test="${userType.id == param.currentusertype}">SELECTED</c:if>>
							<c:out value="${userType.name}" />
						</option>
					</c:forEach>
			</SELECT>
			</td>
		</tr>
		<!--<tr>
				<td><fmt:message key="lable.staff.userrank" />
				</td>
				<td><SELECT name="userRank">
						<OPTION value="#">
							<fmt:message key="lable.staff.userrank.title" />
						</option>
						<OPTION value="1"
							<c:if test="${ param.userrank=='1'}">SELECTED</c:if>>
							<fmt:message key="lable.staff.userrank.administrativestaff" />
						</option>
						<OPTION value="2"
							<c:if test="${ param.userrank=='2'}">SELECTED</c:if>>
							<fmt:message key="lable.staff.userrank.professionalstaff" />
						</option>
				</SELECT></td>
			</tr>-->
		<tr>
			<td><fmt:message key="lable.staff.password" />
			</td>
			<td><input type="text" name="password"
				value="${currentuser.password}" size="15" maxlength="20"></td>
		</tr>
		<tr>
			<td><fmt:message key="lable.staff.name" /></td>
			<td><input type="text" name="name" value="${currentuser.name}"
				size="15" maxlength="20">
			</td>
		</tr>
		<tr>
			<td><fmt:message key="lable.staff.address" /></td>
			<td><input type="text" name="address"
				value="${currentuser.address}" size="15" maxlength="20">
			</td>
		</tr>
		<tr>
			<td><fmt:message key="lable.staff.phone" /></td>
			<td><input type="text" name="phone" value="${currentuser.phone}"
				size="15" maxlength="20">
			</td>
		</tr>
		<tr>
			<td><fmt:message key="lable.staff.overtime" /></td>
			<td><input type="text" name="overTime"
				value="${currentuser.overTime}" size="15" maxlength="20">
			</td>
		</tr>
		<tr>
			<td><input type="submit" value="Submit"> <input
				type="reset" value="Reset"></td>
		</tr>

	</table>
</form>
<jsp:include page="../template/contentfooter.jsp" />
<%-- end of content template --%>

<jsp:include page="../template/footer.jsp" />